{% extends 'common.html'%}
    {% block content %}
        <blockquote class="layui-elem-quote">欢迎使信而富测试辅助工具,本工具采用python语言编写，框架使用Flask，前端框架使用weadmin，本工具开源，欢迎添砖，如需源码地址，请钉钉联系系统管理员：陈祥</blockquote>
			<div class="layui-fluid" style="overflow: hidden;">
				<div class="layui-row layui-col-space15">
					<div class="layui-col-md8">
						<div class="layui-card">
							<div class="layui-card-header">快捷方式</div>
							<div class="layui-card-body">
								<div class="layui-carousel weadmin-shortcut" lay-filter="shortcut" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 280px;">
									<div carousel-item="">
										<ul class="layui-row layui-col-space10 layui-this">
											<li class="layui-col-xs3">
												<a href="http://192.168.60.24" target="_blank">
													<i class="layui-icon">&#xe705;</i>
													<cite>测试平台</cite>
												</a>
											</li>
											<li class="layui-col-xs3">
												<a href="http://192.168.60.24/wiki" target="_blank">
													<i class="layui-icon">&#xe735;</i>
													<cite>WIKI</cite>
												</a>
											</li>
											<li class="layui-col-xs3">
												<a href="http://10.194.80.249/testlink/" target="_blank">
													<i class="layui-icon">&#xe606;</i>
													<cite>TestLink</cite>
												</a>
											</li>
											<li class="layui-col-xs3">
												<a href="http://10.194.80.249/mantis" target="_blank">
													<i class="layui-icon">&#xe606;</i>
													<cite>Mantis</cite>
												</a>
											</li>


										</ul>
										<ul class="layui-row layui-col-space10">
											<li class="layui-col-xs3">
												<a href="http://192.168.66.11:8080/" target="_blank">
													<i class="layui-icon">&#xe600;</i>
													<cite>Jenkins</cite>
												</a>
											</li>

											<li class="layui-col-xs3">
												<a href="http://disconf.crfchina.com/" target="_blank">
													<i class="layui-icon">&#xe62c;</i>
													<cite>Disconf</cite>
												</a>
											</li>
											<li class="layui-col-xs3">
												<a href="http://192.168.60.24/phones/index.php/test/index/logintools" target="_blank">
													<i class="layui-icon layui-icon-set"></i>
													<cite>快速登录工具</cite>
												</a>
											</li>
											<li class="layui-col-xs3">
												<a href="http://ops.crfchina.com/" target="_blank">
													<i class="layui-icon layui-icon-set"></i>
													<cite>自动化运维</cite>
												</a>
											</li>

										</ul>

									</div>
									<div class="layui-carousel-ind">
										<ul>
											<li class="layui-this"></li>
											<li></li>
										</ul>
									</div>
									<!--<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
									<button class="layui-icon layui-carousel-arrow" lay-type="add"></button>-->
								</div>

							</div>
						</div>
					</div>
					<div class="layui-col-md4">
						<div class="layui-card">
							<div class="layui-card-header">
								作者叨叨
								<i class="layui-icon" style="color: #FF5722;">&#xe756;</i>
							</div>
							<div class="layui-card-body layui-text weadmin-text">
								<p>测试是一门艺术，测试过程中不仅要知其然，更要知其所以然</p>
								<p>本工具的初衷是为了节省测试过程中造数据所花费的时间，不能过度依赖，一定要弄清程序操作的过程和步骤。</p>
								<p>本工具提供了大量日志，将程序操作的数据库、redis、接口全部打印，可以帮助你快速了解和熟悉系统</p>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-col-lg12 layui-collapse" style="border: none;">
				<div class="layui-col-lg6 layui-col-md12">


					<!--统计信息展示-->
					<fieldset class="layui-elem-field" style="padding: 5px;">
						<!--WeAdmin公告-->
						<div class="layui-card">
							<div class="layui-card-header layui-elem-quote">公告</div>
							<div class="layui-card-body">
								<div class="layui-carousel weadmin-notice" lay-filter="notice" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 280px;">
									<div carousel-item="">
										<div class="">
											<a href="#" target="_blank" class="layui-bg-red">二〇一八年九月十三日 17:46:14  第一版本完工</a>
										</div>

									</div>
									<div class="layui-carousel-ind">
										<ul>
											<li class="layui-this"></li>
											<li></li>
										</ul>
									</div>
									<!--<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
									<button class="layui-icon layui-carousel-arrow" lay-type="add"></button>-->
								</div>

							</div>
						</div>
						<!--<legend>信息统计</legend>-->


					</fieldset>
				</div>
				<div class="layui-col-lg6 layui-col-md12">
					<fieldset class="layui-elem-field we-changelog" style="padding: 5px;">
						<!--更新日志-->
						<blockquote class="layui-elem-quote font16">更新日志</blockquote>
						<ul class="layui-timeline" style="overflow-y: auto;">

							<li class="layui-timeline-item">
								<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
								<div class="layui-timeline-content layui-text">
									<div class="layui-timeline-title">
										<h3>V1.0</h3>
										<span class="layui-badge-rim">2018-09-13</span>
									</div>
									<ul>
										<li>crf_test_tools  python版工具 发布上线</li>
									</ul>
								</div>
							</li>

							<li class="layui-timeline-item">
								<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
								<div class="layui-timeline-content layui-text">
									<div class="layui-timeline-title">
										<h3>V0.1</h3>
										<span class="layui-badge-rim">2018-09-05</span>
									</div>
									<ul>
										<li>crf_test_tools  python版工具立项</li>
									</ul>

								</div>
							</li>
						</ul>
					</fieldset>
				</div>
			</div>
			<div style="clear: both;overflow: hidden; margin-top: 10px;">
				<blockquote class="layui-elem-quote">
				</blockquote>
			</div>
            <script type="text/javascript" src="/static/lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript">
		layui.extend({
			admin: '/static/js/admin',
		});
		layui.use(['jquery', 'element','util', 'admin', 'carousel'], function() {
			var element = layui.element,
				$ = layui.jquery,
				carousel = layui.carousel,
				util = layui.util,
				admin = layui.admin;
			//建造实例
			carousel.render({
				elem: '.weadmin-shortcut'
				,width: '100%' //设置容器宽度
				,arrow: 'none' //始终显示箭头
				,trigger: 'hover'
				,autoplay:false
			});

			carousel.render({
				elem: '.weadmin-notice'
				,width: '100%' //设置容器宽度
				,arrow: 'none' //始终显示箭头
				,trigger: 'hover'
				,autoplay:true
			});

			$(function(){
				setTimeAgo(2018,0,1,13,14,0,'#firstTime');
				setTimeAgo(2018,2,28,16,0,0,'#lastTime');
			});
			function setTimeAgo(y, M, d, H, m, s,id){
			    var str = util.timeAgo(new Date(y, M||0, d||1, H||0, m||0, s||0));
			    $(id).html(str);
			    console.log(str);
			 };
		});
	</script>
    {% endblock %}